<script >
        function cnenlink() {


            var evid = $("#hdn_eventsId").val();
            $.post(
            "../../CnEnMapp.aspx",
            { lanid: "1103", eventid: evid },
            function (data) {
                if (data != "error") {

                    $("#toenlink").attr("href", "../../cn/events/" + data + ".html");

                }
                else {

                    $("#toenlink").attr("href", "eventcalendar.html");

                }

            }
            );

        }
        </script>